<div class="horizontal-scroll" ba-panel ba-panel-class="with-scroll" ba-panel-title="条件查询">
    <div class="row">
        <div class="form-group col-sm-3 col-xs-6">
            <label>班级名称：</label><input type="text" class="form-control" id="className" ng-model="vm.className" placeholder="输入班级名称查询">
        </div>
        <div class="form-group col-sm-3 col-xs-6">
            <label>班主任名称：</label><input type="text" class="form-control" id="teacherName" ng-model="vm.teacherName" placeholder="输入班主任名称查询">
        </div>
        <div class="form-group col-sm-3 col-xs-6">
            <p style="margin: 0px;line-height: 20px;">&nbsp;</p>
            <button type="button" class="btn btn-primary"  ng-click="vm.initPage()">查询</button>
            <button type="button" class="btn"  ng-click="vm.cleanParams()">清空</button>
        </div>
    </div>
    <p>&nbsp;</p>
    <table class="table table-hover" st-table="smartTableData">
        <thead>
        <tr class="sortable ">
            <th class="table-left-font">班级名称</th>
            <th>班主任</th>
            <th>班级人数</th>
            <th>班级简介</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="item in vm.page.pageResult">
            <td class="table-left-font">{{item.className}}</td>
            <td>{{item.teacherName || "暂无"}}</td>
            <td>{{item.classNumber}}</td>
            <td>{{item.classInfomation}}</td>
            <td>
                <a style="cursor: pointer;" class="link" ng-click="gotoManage(item.id)">班级管理</a>
            </td>
        </tr>
        </tbody>
        <tfoot ng-show="vm.page.pageTotalItemSize > vm.page.pageSize">
        <tr>
            <td colspan="6" class="text-center">
                <uib-pagination total-items="vm.page.pageTotalItemSize"
                                ng-model="vm.page.pageIndex"
                                items-per-page="vm.page.pageSize"
                                num-pages="vm.page.pageTotalPageSize"
                                boundary-link-numbers="true"
                                ng-change="vm.initPage()"></uib-pagination>
            </td>
        </tr>
        </tfoot>
    </table>
</div>